<?php
/*********************************************************************\
* This File is a part of BH-PANEL (Breizh-Heberg Panel v2.1)
* Copyright (C) 2008-2009 the BH Developpers : Vincent Giersch <mail@vincordi.fr>, Cyprien Laleau <fanning.fr@gmail.com> and Edwin Cabiten <marmottes44@hotmail.fr>
* See file AUTHORS to get more informations

* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.

* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.

* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
/*********************************************************************/

$title = "Hébergement mutualisé et noms de domaine - Accueil";
$tplinc = "site-index";
$parse = 1;
$news = query("SELECT post_id,UNIX_TIMESTAMP(post_upddt),post_title,post_url FROM breizh_blog.dc_post WHERE post_status='1' ORDER by post_id DESC LIMIT 0,4");
While($l_news = mysql_fetch_array($news)) {
	$tpl->assign_array('aff_news',array(
		"url" => $l_news['post_url'],
		"title" => utf8_encode($l_news['post_title']),
		"time" => date('d/m/y H\hm',$l_news['UNIX_TIMESTAMP(post_upddt)'])
	));
}
$tpl->assign(array(
	'affiliation_pc' => $bzh_config['affiliation_pc'],
	"load" => "new Effect.SlideDown(document.getElementById('speed_top'))",
));
?>